package com.medical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;

import com.medical.mapper.HospitaldeptMapper;
import com.medical.mapper.HospitaldeptMapperCustom;
import com.medical.po.Hospitaldept;
import com.medical.po.HospitaldeptCustom;
import com.medical.service.HospitaldeptService;

/** 
* @author  LTT-AH-ZY E-mail: 
* @date 创建时间：2017年7月25日 下午4:07:35 
* @version 1.0 
* @parameter 参数及其意义
* @since 最早使用该方法/类/接口的JDK版本 
* @since  
* @return  
*/
public class HospitaldeptServiceImpl implements HospitaldeptService {
	@Autowired
	private HospitaldeptMapperCustom hospitaldeptMapperCustom;
	@Autowired
	private HospitaldeptMapper hospitaldeptMapper;
	
	@Override
	public List<HospitaldeptCustom> findHospitaldeptList(HospitaldeptCustom hospitaldeptCustom) throws Exception {
		// TODO Auto-generated method stub
		return hospitaldeptMapperCustom.findHospitaldeptList(hospitaldeptCustom);
	}
	
	@Override
	public Hospitaldept findHospitalDeptAbs(Integer hospdeptid) throws Exception {
		//根据主键查询医院部门的详情
		return hospitaldeptMapper.selectByPrimaryKey(hospdeptid);
	}

}
